/**  

* @Title: ArticleDao.java 

* @Package com.gxbadge.dao 

* @Description: TODO(用一句话描述该文件做什么) 

* @author CST

* @version V1.0  

*/ 

package com.gxbadge.dao;

import java.util.List;

import com.gxbadge.model.Article;
import com.gxbadge.model.Image;
import com.gxbadge.model.Navigation;

public interface ImageDao {

	void save(Image image);
	void delete(Image image);
	void update(Image image);
	Image findImageByImageId(Integer imageId);
	List<Image> findImageAll();
	List<Image> findImageByArti(Article arti);
	List<Image> findImageAllByPage(int offset, int pageSize);
	List<Image> findImageListByNavListAndPage(List<Navigation> navList, int offset, int pageSize);
	List<Image> findImageListByPage(String hql, int offset, int pageSize);
	List<Image> findImageByNavAndPage(int offset, int pageSize, Navigation nav);
	long find_imageCountByNav(Navigation nav);
	long find_imageAllCount();
	long find_imageListCountByNavList(List<Navigation> navList);
	
	/* --------------------------------图片处理----------前台----------------------------------------- */
	
	List<Image> findImageByNavListAndPage(List<Navigation> navList, int offset, int pageSize);
	List<Image> findImageByNavAndPage(Navigation nav, int offset, int pageSize);
	long f_find_imageCountByNav(Navigation nav);
}
